﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using FwProject.EventAdvertising.Dto;
using FwProject.Shop.Dto;
using FwProject.ShoppingMall.Shop;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using AutoMapper;
namespace FwProject.AppHome.Dto
{
    [AutoMap(typeof(ShopProductDto))]
    public class HomeSecKillShopProduct : EntityDto<Guid>
    {
        /// <summary>
        /// 商品分类id
        /// </summary>
        [Display(Name = "商品分类编号")]
        public Guid ShopTypeid { get; set; }

        public Guid ShopProductid { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        [Display(Name = "商品名称")]
        public string ProductName { get; set; }
        /// <summary>
        /// 商品编号
        /// </summary>
        [Display(Name = "商品编号")]
        public string ProductNumber { get; set; }

        public ShopProductFlag ShopProductFlag { get; set; } = ShopProductFlag.正常;

        [Display(Name = "首页商品图片")]
        public string HomeImage { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        [Required]
        public float SpceWeight { get; set; } = 0;

        /// <summary>
        /// 购买人数
        /// </summary>
        [Required]
        [IgnoreMap]
        public int PayPeopleCount { get; set; } = 0;
        /// <summary>
        /// 销售数量
        /// </summary>
        [IgnoreMap]
        public int PayCount { get; set; } = 0;

        [IgnoreMap]
        public ShopSecondkillDto ShopSecondkillDto  { get;set;}
    }
}
